<template>
  <div>
      <mc-db-table-field :data="data" :project-uuid="projectUuid"></mc-db-table-field>

      <el-button @click="print">打印</el-button>
      <el-button @click="change">变更</el-button>
  </div>
</template>

<script>
import McDbTableField from './components/McDbTableField'
export default {
    data(){
      return {
          projectUuid:"2c9fe31d7ca07921017ca079b44d0000",
          data:{
            db:"database",
            table:"hello_world",
            field:"myid"
          }
		  }
    },
    components:{
      McDbTableField,
    },
    methods:{
        print(){
            console.log(this.data)
        },
        saveData(val){
            console.log(val);
        },
        change(){
            this.data.fields = [{"name":"id","title":"主键"}]
        }
    }
}
</script>

<style>

</style>
